﻿@{
    ViewBag.Title = "登录日志";
    Layout = "~/Views/Shared/ListLayout.cshtml";
}
<table id="dg" class="easyui-datagrid" data-options="fitColumns:true,pagination:true,fit:true,url:'@Url.Action("GetPagedList")',method:'get'">
    <thead>
        <tr>
            <th data-options="field:'UserName',width:80">登录帐户</th>
            <th data-options="field:'Ip',width:100">登录IP</th>
            <th data-options="field:'LoginTime',width:80,formatter:common.datetimeFormatter">登录时间</th>
            <th data-options="field:'Successful',width:80,formatter:formatSuccessful">状态</th>
            <th data-options="field:'Remark',width:80,align:'left'">备注</th>
        </tr>
    </thead>
</table>
@section Script{
    <script>
        function formatSuccessful(value, row, index) {
            return value ? '登陆成功' : '登陆失败';
        }
    </script>
}


